<?php include_partial('elenco', array('brokerages'=>$brokerages)); ?>

<?php if ($pager->haveToPaginate()): ?>
  <div class="grid_16"><br /><br />
    <a href="<?php echo url_for('brokerage/elenco/?page=1') ?>">
     &laquo;
    </a> &nbsp;&nbsp;
    <a href="<?php echo url_for('brokerage/elenco/?page='.$pager->getPreviousPage()) ?>">
      &lsaquo;
    </a>&nbsp;&nbsp;&nbsp;
 
    <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
        &nbsp;<a href="<?php echo url_for('brokerage/elenco/?page='.$page) ?>"><?php echo $page ?></a>&nbsp;
      <?php endif; ?>
    <?php endforeach; ?>&nbsp;&nbsp;&nbsp;
 
    <a href="<?php echo url_for('brokerage/elenco/?page='.$pager->getNextPage()) ?>">
      &rsaquo;
    </a> &nbsp;&nbsp;
    <a href="<?php echo url_for('brokerage/elenco/?page='.$pager->getLastPage()) ?>">
      &raquo;
    </a>
    <br /><br /><br /><br />
  </div>
<?php endif; ?>
